package com.dhp.service;

import com.dhp.domain.Team;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhp.domain.dto.TeamAddDTO;
import com.dhp.domain.dto.showTeamsDTO;
import com.dhp.domain.request.MyTeamSearchRequest;
import com.dhp.domain.request.TeamJoinRequest;
import com.dhp.domain.request.TeamQuitRequest;
import com.dhp.domain.request.TeamUpdateRequest;
import com.dhp.domain.vo.teamsVO;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;

/**
* @author Dhp
* @description 针对表【team(队伍信息)】的数据库操作Service
* @createDate 2024-02-18 18:18:45
*/
public interface TeamService extends IService<Team> {

    Team addTeam(TeamAddDTO teamAddDTO, HttpServletRequest request);

    List<teamsVO> showTeams(showTeamsDTO teamsDTO, HttpServletRequest request);

    teamsVO getTeamInfo(Long teamId);

    Boolean teamUpdate(TeamUpdateRequest teamUpdateRequest, HttpServletRequest request);

    Boolean joinTeam(TeamJoinRequest teamJoinRequest, HttpServletRequest request);

    Boolean deleteTeam(Long id, HttpServletRequest request);

    List<teamsVO> searchMyTeam(MyTeamSearchRequest teamSearchRequest, HttpServletRequest request);

    List<teamsVO> searchMyjoinTeam(showTeamsDTO showTeamsDTO, HttpServletRequest request);

    boolean quitTeam(TeamQuitRequest teamQuitRequest , HttpServletRequest request);

     Date TimeFormat(Date date);
}
